package com.scalar.chiptrack.marketing.forms;
import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

import com.scalar.chiptrack.ChipTrackActionForm;
public class PricingForm extends ChipTrackActionForm {
    
    private String productId = null;
    private int customerId = -1;
    private String customerName = null;
    private String action = null;
    private ArrayList priceList = new ArrayList();
    private ArrayList salesOrderTypes= new ArrayList();
    private ArrayList periodList = new ArrayList();
    private int sample = -1;
    private FormFile theFile;
    public String getProductId()
    {
        return productId;
    }
    
    public void setProductId(String productId)
    {
        this.productId = productId;
    }
    
    public int getCustomerId()
    {
        return customerId;
    }
    
    public void setCustomerId(int customerId)
    {
        this.customerId = customerId;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }
    
    public ArrayList getPriceList()
    {
        return priceList;
    }
    
    public void setPriceList(ArrayList priceList)
    {
        this.priceList = priceList;
    }
    
    //From here this need to replaced once we find how to retrieve the values from Iterate 
    private String[] fromQty;
    private String[] toQty;
    private String[] price;

    public PricingForm() {
    }

    public String[] getFromQty()
    {
        return fromQty;
    }
    
    public void setFromQty(String[] fromQty)
    {
        this.fromQty = fromQty;
    }
    
    public String[] getToQty()
    {
        return toQty;
    }
    
    public void setToQty(String[] toQty)
    {
        this.toQty = toQty;
    }
    
    public String[] getPrice()
    {
        return price;
    }
    
    public void setPrice(String[] price)
    {
        this.price = price;
    }

    public ArrayList getPeriodList() {
        return periodList;
    }

    public void setPeriodList(ArrayList periodList) {
        this.periodList = periodList;
    }

    //up to this need to replaced once we find how to retrieve the values from Iterate
    
    public String getAction()
    {
        return action;
    }
    
    public void setAction(String action)
    {
        this.action = action;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
    }

    public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();
        return errors;
    }


    public int getSample() {
        return sample;
    }

    public void setSample(int sample) {
        this.sample = sample;
    }

    public ArrayList getSalesOrderTypes() {
        return salesOrderTypes;
    }

    public void setSalesOrderTypes(ArrayList salesOrderTypes)
    {
        this.salesOrderTypes = salesOrderTypes;
    }

    public FormFile getTheFile() {
        return theFile;
    }

    public void setTheFile(FormFile theFile) {
        this.theFile = theFile;
    }
}